package com.wanho.qz103.hrsaas.commons.tx;

import com.wanho.qz103.hrsaas.commons.exception.DataAccessException;

/**
 * 事务操作接口
 */
public interface TxManager {
    /**
     * 开启事务
     * @throws DataAccessException
     */
    void beginTx() throws DataAccessException ;

    /**
     * 提交事务
     * @throws DataAccessException
     */
    void commitTx() throws DataAccessException ;

    /**
     * 事务回滚
     * @throws DataAccessException
     */
    void rollbakTx() throws DataAccessException ;
}
